package top.lilele.adminSystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import top.lilele.adminSystem.dto.DeptUserListDto;
import top.lilele.adminSystem.dto.GetUserByDeptIdDto;
import top.lilele.adminSystem.entity.AdminDepartmentEntity;

import java.util.List;


/**
 * @author lilele
 */
@Component
@Mapper
public interface AdminDepartmentMapper extends BaseMapper<AdminDepartmentEntity> {
    /**
     * 根据部门id查询当前部门的用户列表
     *
     * @param getUserByDeptIdDto
     * @return
     */
    List<DeptUserListDto> selectUserListByDeptId(@Param("getUserByDeptIdDto") GetUserByDeptIdDto getUserByDeptIdDto);

}




